Using ksh 2013-10-08 alpha (with the patches that address some of the
issues I recently reported), sorting an indexed array of types seems
to partially work:

========================================
$ typeset -T My_t=( float x )
$ My_t -a A=( (x=1.1) (x=2.2) )
$ set -s -A A -K x:nr
$ typeset -p A
My_t -a A=((typeset -l -E x=2.2) (typeset -l -E x=1.1))
$ echo ${A[0]}
( typeset -l -E x=2.2 )
$ echo ${A[0].x}
1.1
$ echo ${A[1]}
( typeset -l -E x=1.1 )
$ echo ${A[1].x}
2.2
========================================

--
Nathan Weeks
IT Specialist
USDA-ARS Corn Insects and Crop Genetics Research Unit
http://weeks.public.iastate.edu/
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to