Added Sorting
Added Sorting Functionality