Add indexes to fields used for ordering