Created comparator classes
Added sort button functionality