[FIX] change which value is taken for sort

- upper window is more reliable since it will also work with broken
  SWATH files (e.g. files generated with OpenMS before the OpenMS bug
  #639 was fixed )