Page 1 of 1

SortList options have changed places

Posted: Fri Sep 18, 2015 7:53 am
by davenull
SortList options seem to work "upside down". Option #PB_Sort_Descending sorts the list ascending, and vice versa.

I'm using SpiderBasic v1.0.2.

Cheers.

Re: SortList options have changed places

Posted: Tue Nov 24, 2015 2:11 pm
by Fred
I tried to reproduce the issue without luck, it does seem to work as expected here:

Code: Select all

NewList a()
AddElement(a())
a() = 10

AddElement(a())
a() = 5

AddElement(a())
a() = 15

SortList(a(),  #PB_Sort_Ascending)

ForEach a()
  Debug a()
Next

Debug "------------------"

SortList(a(),  #PB_Sort_Descending)

ForEach a()
  Debug a()
Next