Added ability to set default sorting field and direction