Check out Modern Chess, our featured variant for January, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Sat, Aug 8, 2020 05:15 PM UTC in reply to H. G. Muller from 05:23 AM:

Since it looks like you're the first person to use sort, I modified it to use sort() instead of natsort(), and I also modified it to read all remaining arguments as an array if the first argument is not an array. I also added the following functions:

asort
Sorts an associative array, preserving the keys. Takes only one argument, which should be an array.
natsort
Sorts an associative array in a natural order, preserving the keys. Same as sort used to be. Takes only one argument, which should be an array.
isort
Sorts an array in a natural, case-insensitive manner. Will sort remaining arguments if first one is not an array.
values
Returns the values of an array. Mainly useful for placing the values of an associative array into a numeric array.