Fixed sortby => dir