Currently, B4XComparatorSort seems to sort only in ascending or descending order, depending on the implementation of compare() in the custom Comparator class. If you need both sort orders, you need two separate classes or you need to reverse the order of the resulting list.
Could you please consider adding a boolean property to B4XComparatorSort that can be used to easily switch from ascending to descending sort without implementing a separate Comparator class or reversing the order of the result?
Thank you,
Thomas
Could you please consider adding a boolean property to B4XComparatorSort that can be used to easily switch from ascending to descending sort without implementing a separate Comparator class or reversing the order of the result?
Thank you,
Thomas