Author Topic: wrong sorting persian file and folders by name  (Read 16526 times)

travis82

  • Newbie
  • *
  • Posts: 5
    • View Profile
wrong sorting persian file and folders by name
« on: July 26, 2014, 07:12:45 »
hi
I am a persian user of MC and I have many file and folders in my computer named by persian language. MC show odd behavior when I want to arrange these file and folder by name. sorting is wrong in persian alphabetical and I don't now why?
please fix this bug

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4411
    • View Profile
    • Multi Commander
Re: wrong sorting persian file and folders by name
« Reply #1 on: July 26, 2014, 15:07:21 »
Natural sorting does not work well with some localized characters.
So if you turn off that it should sort better

Menu > Configuration > Explorer Panel Settings > Display (tab)
Scroll down to "Sorting and Columns"
Uncheck "Sort files and folders in natural order"

travis82

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: wrong sorting persian file and folders by name
« Reply #2 on: July 27, 2014, 08:42:15 »
I try this. it's not work

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4411
    • View Profile
    • Multi Commander
Re: wrong sorting persian file and folders by name
« Reply #3 on: July 27, 2014, 09:22:55 »
That is very strange because when it is off the compare for the sorting is handled by Windows it self.

Did you restart MC or force a refresh in MC ?
Is everything sorted wrong or only some characters.. Do Windows explorer sort it correct ?

ice-man

  • Active Member
  • ***
  • Posts: 56
  • The Little Extra
    • View Profile
Re: wrong sorting persian file and folders by name
« Reply #4 on: July 29, 2014, 16:07:21 »
Maybe he can figure out how to fix it if you can post an example with names that are sorted wrong and how they should be sorted.
I think it can be difficult for Mathias to fix this without proper test data.
Intel i7-6700K - Running on latest Windows 10 64bit Insider Preview

travis82

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: wrong sorting persian file and folders by name
« Reply #5 on: August 06, 2014, 08:31:29 »
attached pics shows true sorting of directory named by persian characters in two different file manager (free commander and double commander) and wrong sorting in MC. look at the location of کتاب directory in these pics. this problem is not about words starting with ک letters. but occurs for many persian letters. disabling "sort file and folders in natural order" dose not solve this problem   
« Last Edit: August 06, 2014, 08:36:21 by travis82 »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4411
    • View Profile
    • Multi Commander
Re: wrong sorting persian file and folders by name
« Reply #6 on: August 06, 2014, 09:33:37 »
Not sure why Windows decides to sort it like that.
But looks like most items are sorted correct and only 1 or 2 are wrong. and that is strange. What is different with them.. are they starting with some "extended" / "special" / "number" character in persian ?

As ice-man said.  Without test data I cannot even test to see why it is happening. Because I can't even type those characters

If you create a some of empty .txt file ( "cf <filename>" in the commandline field ) with names like this and pack them with zip and attach it.
Then I can see if I'm able to reproduce it.. make sure UTF8 in enabled in Zip settings,  Menu > Configuration > FileSystemPlugins > FSZip (or pack them using 7z, it should support unicode filenames )