queue/Print: support sorting by priority
This commit is contained in:
@@ -293,6 +293,9 @@ ParseSortTag(const char *s)
|
||||
if (StringIsEqualIgnoreCase(s, "Last-Modified"))
|
||||
return TagType(SORT_TAG_LAST_MODIFIED);
|
||||
|
||||
if (StringIsEqualIgnoreCase(s, "prio"))
|
||||
return TagType(SORT_TAG_PRIO);
|
||||
|
||||
TagType tag = tag_name_parse_i(s);
|
||||
if (tag == TAG_NUM_OF_ITEM_TYPES)
|
||||
throw ProtocolError(ACK_ERROR_ARG, "Unknown sort tag");
|
||||
|
Reference in New Issue
Block a user