1. A method, comprising: performing an operation on a database table comprising an index, wherein the index is set on at least one column having duplicate values, and wherein the operation scrambles index keys of the index that are set on the duplicate values of the at least one column out of order; and reordering, using an in-place index sort, the index set on the at least one column in the database table, wherein reordering the index in-place unscrambles the index keys.