Fixed LocationComparator, faulty OO arguments, implemented Task.sort
method, and fixed incorrect label for location in the case class.