The module SortMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

The module SortMBS   New in 24.0

module SortMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
module Sort MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Useful sort methods for Xojo arrays.
Example
// fill two arrays
Dim test1() As String
Dim test2() As String

For i As Integer = 1 To 100000
test1.append Str(i)
test2.append Str(i)
Next

// now sort using Xojo and MBS
Dim m1 As Double = Microseconds
test1.Sort
Dim m2 As Double = Microseconds
sortArrayMBS test2
Dim m3 As Double = Microseconds

// check times
Dim d1 As Double = m2-m1
Dim d2 As Double = m3-m2

MessageBox d1.ToString+" in Xojo, "+d2.ToString+" in MBS"

Functions to sum up values in arrays, copying values or comparing values is much faster inside the plugin, than if you code this yourself in Xojo.

Allows the usage of delegates for deciding how to sort yourself.

Blog Entries

Release notes


The items on this page are in the following plugins: MBS Util Plugin.


💬 Ask a question or report a problem