added a sort to the index of client page