sorting on users page (need modification)