Implement Sort using Comparators