implementing flights comparer