Hi all!
I have a gallery that I have added up and down arrows to to facilitate shifting the order. The gallery is a collection from a Sharepoint list. On the up arrow's OnSelect I have:
Select(Parent);Set(previousRecord,LookUp(KeyAreaOrder,Order=ThisItem.Order-1));Set(currentRecord,LookUp(KeyAreaOrder,Order=ThisItem.Order));Patch(KeyAreaOrder,ThisItem,{Order:previousRecord.Order});Patch(KeyAreaOrder,LookUp(KeyAreaOrder,Order=currentRecord.Order),{Order:previousRecord.Order+1});Set(previousRecord,Blank());Set(currentRecord,Blank())
The first number column is the 'Order' column and the second is the ID

It works if the ID of the selected item is greater than the one above it, but not if the ID is less than.
Any ideas?
Thanks!