← Back to team overview

elementaryart team mailing list archive

[Bug 798468] Re: Marlin sorts numbered folder names incorrectly

 

I'm actually not sure what the issue is here. This has nothing to do
with numbers and everything to do with sort order. If you sort the
column ascending, the numbers will be in increasing order. If you sort
the column descending, the numbers will be in decreasing order, the
numbers will be in decreasing order.

So *both* orders should and do exist.

---DISREGARD EVERYTHING ABOVE---

I'm leaving it there because that's how it *should work* (on column view
at least).

The problem here is much more fundamental: Marlin is sorting numbers
exactly like strings.

Case in point:

1110, 200, 2. Marlin will sort them in icon view as: 1110, 2, 200, which
is not only not the right direction, but also just wrong. That's because
it's treating "2" as a letter and sorting it like a word.

I believe the correct response to this bug is to change the title and
description to be about "sorting numbers as numbers, not strings".

-- 
You received this bug notification because you are a member of
elementary desktop team, which is the registrant for Marlin.
https://bugs.launchpad.net/bugs/798468

Title:
  Marlin sorts numbered folder names incorrectly

Status in Marlin:
  Confirmed

Bug description:
  when sorting folders, Marlin sorts numbers incorrectly. Given the
  numbered folder names, 128, 1100, and 24 Marlin will place them in
  order like this:

  1100, 128, 24

  instead it should sort them like we would expect:

  24, 128, 1100

To manage notifications about this bug go to:
https://bugs.launchpad.net/marlin/+bug/798468/+subscriptions


References