Where Should Unscored Records Appear in a Sorted Work Queue?

A work queue is sorted from highest score to lowest. Unexpectedly, requests with no score appear first. Someone changes the direction, and the queue now puts the lowest scored work ahead of the highest. The problem was not simply which direction to choose: missing values needed their own placement policy.
A missing score is not necessarily a low score or a high score. Decide what unscored work means operationally, then make its placement explicit in the query and understandable in the interface.
Establish why the score is missing
Distinguish work awaiting assessment from work that cannot be assessed, work imported without a score, and work for which scoring does not apply. These states may look identical in a database column but require different actions.
The queue owner should decide whether unscored requests belong at the beginning, at the end, or in a separate review section. If missing scores represent unfinished intake, hiding them at the bottom may leave that work unnoticed. If they represent an optional measure, forcing them ahead of all assessed work may be equally misleading.
Check the database's ordering behavior
PostgreSQL documents explicit NULLS FIRST and NULLS LAST options. Its defaults place nulls first for descending order and last for ascending order. Other environments should be checked against their own documented behavior.
An explicit policy such as descending score with nulls last avoids relying on a default that the report reader does not know. It still needs a separate explanation of what a missing score means.
An illustrative queue
Consider four requests: Aspen has score 80, Beech has score 30, Cedar has no score, and Dogwood has score 80. The owner wants assessed work shown from highest to lowest, with unscored work afterward.
The expected score groups are Aspen and Dogwood, then Beech, then Cedar. A stable secondary key can determine the display order within the tied 80 group. It should not silently imply that one tied request has a better score.
Test both directions and all entry points
Users may reverse the sort by clicking a column heading. Decide whether unscored work should stay last in both directions or move with the reversal. Neither behavior should be left to accident.
Check the default view, reversed view, filtered view, and exported result. If the interface and export disagree, a reviewer may act on a different queue order depending on which surface they use. Record the intended rule for each supported view.
Include a newly assessed request
Give Cedar a score in the fixture and predict where it should move. Then clear the score in the test data and confirm that it returns to the unscored position.
This transition checks more than a static screenshot. It verifies that the queue responds to the actual missing-value state instead of a display label or a value cached from an earlier assessment.
Avoid replacing absence with a convenient number
Substituting zero can make a query easier to sort, but it also creates an apparent measured score. If zero is a valid assessment result, the display can no longer distinguish assessed zero from not assessed.
If an implementation uses a sorting expression internally, retain the original missing-value meaning in the presented record. The reader should not have to infer absence from a special number that looks ordinary.
Provide an operational handoff
Document the missing-score states, placement rule, tie order, and expected transition when a score becomes available. Include a named owner for unscored work if it needs follow-up.
The completion check is simple: a colleague should be able to locate all unscored requests and explain why they appear where they do. A sorted queue is useful only when its order supports the team's actual decision, including the records that are not yet ready to be ranked.
Continue with How Do You Make a SQL Top-Ten Work Queue Predictable? for the related planning decision.
The published FutureOS introduction describes the project as being in prelaunch. Use this guide to prepare a concrete project discussion; it does not announce an available FutureOS feature.
Prepared with AI assistance. Primary sources checked on October 25, 2026. Examples and procedures are illustrative editorial guidance, not FutureOS product announcements or an independently reviewed assessment.



Comments