fix locarraysort