Documents sorting displays "Untitled document" inconsistently

Open
#2,602 0 comments 0 reactions 1 assignee View on GitHub

@lunika is already working on this.

Since Aug 25, 2026.

Assessment

This issue has not been assessed yet.

Description

backend

Bug Report

Problematic behavior
When ordering documents in A-Z or Z-A order, documents without a title (displayed as "Untitled document") appear at the top of the list in both sorting modes. This behavior is inconsistent.

In prod I get one one untitled doc on top for A-Z and all untitled document for Z-A.

On preprod
A-Z no untitled document
Z-A untitled document first

Expected behavior/code

  • For A-Z sorting: Documents without a title should appear at the last
  • For Z-A sorting: Documents without a title should also appear first

Steps to Reproduce

Environment

  • Docs version: 5.5
  • Instance URL: prod
    Possible Solution

Additional context/Screenshots

Z-A

Image

A-Z

Image
Dominant language
Python
Stars
16.8k
Forks
638
Avg merge
1d 15h
Merged PRs (30d)
40

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from suitenumerique/docs

All issues in suitenumerique/docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.