Return flag from SORTs

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Return flag from SORTs

Post by RichardL »

Hi,
It would be very useful for SortStructuredArray() and probably other Sorts() to return a flag to indicate if any elements were moved.

Ie:

Return #False if no elements were moved (Array already in order) or
Return #TRUE if elements were moved.

RichardL