[Feature] added sort by direction

Can sort by direction also