For this you can use SortLibrary, which allows you to define more complex comparisons.

Charles Yeomans

On Oct 2, 2006, at 5:41 AM, Tomas Camin wrote:

I got an array of music tracks: each track has a name, album and track number.

To sort them I was using the sortWith method.

max=UBound(tracks)
for i=0 to max
tmparr.append tracks(i).album
next

tmparr.sortwith(tracks)

This sorts by album. But I was asked to sort by album and track number. I tried presorting by track and then by album, but it doesn't work. All methods I thought to solve this problem are all very complex and time consuming.

Any ideas?

Thanks,
Tomas
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to