Staffan Tylen <staffan.ty...@gmail.com> wrote:

> Question: ooRexx provides the Comparator class that lets you customise the
> sort order when sorting an array. Do the sort functions in ooDialog
> provide a similar mechanism? My guess is that sorting in this case is
> controlled by the Windows API, if so does the API provide any
> functionality to change the sort order? In some cases I wish to be able to
> change the default sort order in ListViews and TreeViews.

Don't know...  In the past when I wanted to force obscure sort-orders into
tables of info I'd add an extra column that users never saw and put eg an
integer sequence number in there.  The table display service was told to
sort on that field.  

You might be able to do something similar if you prepare the data in rexx
without that sequence no field being present, then sort it how you want,
then iterate through the sorted data populating the sequence number field. 

-- 
Jeremy Nicoll - my opinions are my own

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to