sorted index controller