Fix formatting for asc and desc