Page 1 of 1

Prepositions in sort order

Posted: 2013-01-12, 20:48 UTC
by gridsleep
I request addition of an option to sorting, if possible, by which prepositions such as 'the' and 'a' and their following space be ignored during sort, so the sort concentrates on the next word, as is done in libraries and the like, to prevent all files starting with prepositions from being situated together.

I searched the forum and found no reference to this issue. Excuse me if this has been addressed already.

Thank you for this program, Christian. I would not like to imagine using my computers without it.

Posted: 2013-01-13, 20:47 UTC
by TLis
Why do you think the specifics of the English language should have any particular handling in TC, which is used by a lot of non English-speaking people?

I can imagine having a custom column being the file name with the parts "the " and "a " appropriately removed. Then I guess TC should allow you to sort on that column

Posted: 2013-01-14, 05:05 UTC
by gridsleep
Which is why I use phrases such as "such as." As far as I know, all human languages use prepositions in one form or another. Some are used in other parts of the sentence and some exist as alternate forms of nouns and adjectives. Since I am an English speaker I used English prepositions as examples.

Using a separate column for prepositions would be clumsy programming (and inappropriate, since, as indicated, not all languages start sentences with prepositions) when the program is fully capable of parsing and analysing whole lines. My suggestion would require an addition to the parser and to the settings interface to allow the optional subroutine to be enabled and disabled.

I realize this could be a very complicated addition and therefor do not have high expectations of its inclusion. I just think it would help to make Total Commander more perfect.

Posted: 2013-01-15, 08:20 UTC
by TLis
gridsleep wrote:As far as I know, all human languages use prepositions in one form or another.
Polish doesn't :-)
gridsleep wrote:Some are used in other parts of the sentence and some exist as alternate forms of nouns and adjectives.
The declination of nouns and adjectives (alternate forms of nouns and adjectives) has nothing to do with the prepositions, as in the English language.

I admit, however, that a feature allowing to sort on an appropriately transformed form of the file name would be nice. Due to a large variety of possible ways the human languages would consider a given part as relevant or not, I still suggest a kind of custom column. The real enhancement to TC to achieve this would be to allow the plugins to be customizable, so that e.g.:
1. We define a new custom column based on our special plugin.
2. When we select a given feature offered by our plugin a dialog pops up enabling us to define an argument for that feature.
3. The plugin fills in the custom column using the results returned by the plugin taking into account the argument.

The argument might define e.g. the removal of some parts, replacing some parts with other ones, etc., leading to a string suitable for sorting.