Create sort in indexes