Position fix

order or reverse order sort
added try catch for safety