Implemented Multiple sort.