Sorting by multiple fileds. closes #41