Getting closer and closer to a general area sort function.