adding the sort command