New lsort

The lsort command was reimplemented. The new implementation is reentrant, which means you can use lsort inside a sorting function called by lsort. New options have lessened the need for custom sorting procedures, too. The -dictionary option sorts cases together and it handles numbers better. The -index option sorts lists on a key field. These are described on page 65.

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.