#13 added sortType and sortDirection params