elements smaller on left and greater on right