Add indices for sort fields for better query performance