SortList options have changed places

Just starting out? Need help? Post your questions and find answers here.
davenull
Posts: 2
Joined: Fri Sep 18, 2015 7:37 am

SortList options have changed places

Post 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.
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: SortList options have changed places

Post 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
Post Reply