Done @SELECT sort

From the help file;
Code:
If you set the optional 7th parameter sorted to 1, the list will be sorted alphabetically.

It would be great to allow the sort to be ascending or descending.

To get this;
1602597232428.png


I presently have to do this;
Code:
sort /r %temp\c2p.txt /o %temp\c2p.tmp
del /q %temp\c2p.txt
ren /q %temp\c2p.tmp %temp\c2p.txt
*set results=%@select[%temp\c2p.txt,1,1,20,80,Select a file from the list]

Joe
 
May 20, 2008
11,867
121
Syracuse, NY, USA
Or roll your own ...

Code:
v:\> function rselect `%@exec[@set tmpf=%tmp\%@name[%1].tmp]%@exec[@sort /r %1 /o %tmpf]%@select[%tmpf,%2$]%@exec[@del /q %tmpf]`

v:\> do i=1 to 5 ( echo %i >> 1to5.txt )

v:\> echo %@rselect[v:\1to5.txt,0,0,400,500,pick one]

1602606218509.png