renamed sorted param in index controller