Skip to content

libvlc.PlayList.SortWith

Andrew Lambert edited this page Nov 26, 2022 · 3 revisions

libvlc.PlayList.SortWith

Method signatures

 Sub SortWith(Sortable() As Integer)
 Sub SortWith(Sortable() As String)

Remarks

Sorts the PlayList using the Sortable array as a reference.

If the Sortable parameter is a string array then the PlayList is sorted in the same way that the array would be sorted using Xojo's string array sorting algorithm.

If the Sortable parameter is an array Integers then the PlayList is ordered according to the values in the array. The first number in the array is the new index for the first item in the PlayList, the second number is the new index of the second item in the PlayList, and so on. For example if the PlayList has three items in it and Sortable() = Array(2, 1, 0) then that would swap the first and last items in the PlayList (0->2; 1->1; 2->0).

See also

Clone this wiki locally