index: use one parameter "sort" for both ascending and descending sorting