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

Or, shorthand:

Function StringValue( Extends b As Boolean ) As String

If b Then Return "True"
Return "False"

End Function

Ronald Vogelaar
http://www.rovosoft.com



I do the same thing; for instance --
Function StringValue(extends b as Boolean) as String
  if b then
    return "True"
  else
    return "False"
  end if
End Function
Charles Yeomans
_______________________________________________
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>

_______________________________________________
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