Sorting of attributes feature, offset & limit fixes