-
-
Notifications
You must be signed in to change notification settings - Fork 4
libvlc.PlayList.SortWith
Sub SortWith(Sortable() As Integer)
Sub SortWith(Sortable() As String)
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).
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.
Entry-level points of interest denoted by "☜"