Added sorting capabilities on index (HW 2.1)