array sorting happens via a - b