add descending and ascending functionalities and fixed the x-axis