Page MenuHomePhabricator

Alphabetically ordering glosses
Closed, ResolvedPublic3 Estimated Story Points


As an LexData editor, I want to find easily a language in the list of the glosses. The first step for this is to order them alphabetically.

Problem: Currently glosses are sorted by order of entered time. We should sort them alphabetically. We'll go with alphabetically by language code as this is consistent with the termbox.

GIVEN a Lexeme with a Sense
WHEN the Sense has more than one Gloss
THEN the Glosses are ordered by their language code

Acceptance criteria:

  • When viewing a Sense then all Glosses are in alphabetical order of their language code


  • It's ok to have new ones added at the end until page reload.

Event Timeline

hmm, shouldn't be the first gloss in language of the lexeme?

We'll look into that later as part of T203460.

Change 464004 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/WikibaseLexeme@master] Order glosses in senses

Change 464004 merged by jenkins-bot:
[mediawiki/extensions/WikibaseLexeme@master] Order glosses in senses

Tested here on L5-S3, it works! \o/

After clicking on "publish", the order stays as entered by the user, it's only when refreshing the page that the glosses get in the alphabetical order. I'm not saying we should change this current behaviour, it's just to mention it somewhere.