Post Reply 
Sorting Strings
07-11-2017, 05:03 AM
Post: #5
RE: Sorting Strings
Bonjour

J'ai personnellement déjà créer une fonction de tri de chaînes par la longueur,
par exemple : {"an","ca","bal","sel"}
Dans vôtre cas je pense qu'il faut utiliser un caractère inutilisable dans vos chaînes qui vient
avant dans l'ordre ASCII et mettre à la même longueur les chaînes par la droite avec ce caractère.
Ensuite Sort pour trier, puis supprimer les caractères inutilisables des chaînes.

Une idée que je testerai quand j'en aurai le temps, si vous ne le faîtes pas.
Espérant vous aider.

Hello

I personally already create a function of sorting strings by length,
For example: {"an", "ca", "bal", "salt"}
In your case I think you have to use an unusable character in your strings that comes
Before in the ASCII order and set the strings to the same length by the right with this character.
Then Sort to sort, and then remove the unusable characters from the strings.

An idea that I will test when I have time, if you do not.
Hoping to help you.

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sorting Strings - Jacob Wall - 07-10-2017, 12:18 AM
RE: Sorting Strings - webmasterpdx - 07-10-2017, 04:58 AM
RE: Sorting Strings - Joe Horn - 07-10-2017, 07:22 AM
RE: Sorting Strings - Jacob Wall - 07-10-2017, 05:02 PM
RE: Sorting Strings - Tyann - 07-11-2017 05:03 AM
RE: Sorting Strings - Tyann - 07-11-2017, 06:06 PM
RE: Sorting Strings - Jacob Wall - 07-11-2017, 06:21 PM
RE: Sorting Strings - Didier Lachieze - 07-11-2017, 11:32 PM
RE: Sorting Strings - Gilles59 - 07-12-2017, 08:28 PM
RE: Sorting Strings - Han - 07-12-2017, 12:32 AM
RE: Sorting Strings - Jacob Wall - 07-12-2017, 05:10 AM
RE: Sorting Strings - Jacob Wall - 07-14-2017, 07:02 AM
RE: Sorting Strings - Didier Lachieze - 07-14-2017, 08:11 AM
RE: Sorting Strings - Jacob Wall - 07-15-2017, 03:00 AM



User(s) browsing this thread: 1 Guest(s)