Added error message when no sort dir flag passed