strtok-v2.e addition

new topic     » topic index » view thread      » older message » newer message

sorttok() is added now:

string = {"Red,Skelton,45,London,England",
          "Lucy,Ball,56,Barre,North Dakota",
          "Fred,Astaire,45,Alberta,Canada",
          "Pierre,du Pont,56,Paris,France"}

string = sorttok(string,{3,-2},',') 
-- sort by field3, then by reverse field2

string = {"Red,Skelton,45,London,England",
          "Fred,Astaire,45,Alberta,Canada",
          "Pierre,du Pont,56,Paris,France",
          "Lucy,Ball,56,Barre,North Dakota"}


Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu