1. A method, comprising: determining that a sort sequence of a query does not match a sort sequence of a shared weight object of a database; modifying the query based on the sort sequence of the query; and executing the modified query using the shared weight object to return a result set, wherein the result set does not include a set of rows that would have been returned using the shared weight object to process the unmodified query.