allow sort order to be specified for attributes