Adds possibility to sort either left to right or right to left.