Issue 114115 - Alphabetical index: controlling sorting
Summary: Alphabetical index: controlling sorting
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 3.2.1
Hardware: All All
: P3 Trivial with 8 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2010-08-25 21:12 UTC by scriptamanent
Modified: 2017-06-26 09:36 UTC (History)
3 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---

Non-alphabetical index entries (example) (79.73 KB, image/png)
2017-06-26 09:31 UTC, R Green
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description scriptamanent 2010-08-25 21:12:45 UTC
Index entries always appear in alphabetical order.
However, occasionally you may not want your index entry 
to appear where it would normally be alphabetized.
For instance, the famous "5ft Avenue" would ordinarily
be placed at the beginning of the index, before the "A"s.

MsWord and LaTeX have this option.

XE "5ft Avenue;Fifth Avenue"
XE "entry;resorted entry"

The use of flags ";" (MsWord) or "@$\vec{}$" (LaTeX) is very convenient,
because it can be used with ease in a concordance file.
I suggest a similar solution.
Kind regards
Comment 1 scriptamanent 2010-08-29 22:44:31 UTC
#Additional comment#
Option sorting is also useful for another reason.
The default sort order (alphabetisation) in a alphabetical index is
Occasionally, we want letter-by-letter sorting, as shown here;
On MsWord can use the option to sort order.
To force letter-by-letter alphabetisation, if a entry (or subentry) contains
a space, insert a semicolon the end of the text for a entry,
and follow it by the text with all the spaces omitted. 

For example:{ XE "data records;datarecords" }.
Capitalisation affects the sort order, as does white space.

- Word-by-word -

soul brother
soul food
soul kiss
soul mate
soul music
soul sister
soulard crab

XE "soullessness"
XE "soul brother"
XE "soul food"
XE "soul kiss"
XE "soul mate"
XE "soul"
XE "soul sister"
XE "soulard crab"
XE "souletin"
XE "soulful"
XE "soul music"

- Letter-by-letter -

soulard crab
soul brother
soul food
soul kiss
soul mate
soul music
soul sister

XE "soullessness;soullessness"
XE "soul brother;soulbrother"
XE "soul food;soulfood"
XE "soul kiss;soulkiss"
XE "soul mate;soulmate"
XE "soul;soul"
XE "soul sister;soulsister"
XE "soulard crab;soulardcrab"
XE "souletin;souletin"
XE "soulful;soulful"
XE "soul music;soulmusic"

Very useful must-have option!
Kind regards
Comment 2 x_d 2010-09-15 16:30:20 UTC
You may have used the option of phonetic reading, but extended to all languages 
and all the characters of an index entry.
Conceptually, options are very similar.
The UI would need it a little retouching (just a new option to choose whether 
to use the phonetic reading or sorting the index entry).
However, I would like to use this feature also on the concordance file.
Search term;Alternative entry|Sorting alternative entry;1st key|Sorting 1st
key;2nd key|Sorting 2nd key;Comment;Match case;Word only

Comment 3 steppe 2010-09-29 16:56:15 UTC
This is an important feature for compatibility with MSWord.
Please, see issue 114804
Thanks for your attention
Comment 4 holdsworth 2010-10-04 20:58:49 UTC
The correct syntax (LaTeX) is

\index{Fifth Avenue\@5ft Avenue}

However, I would love to have this option.
Comment 5 holdsworth 2010-10-04 20:59:50 UTC
*** Issue 114115 has been confirmed by votes. ***
Comment 6 eric.savary 2010-10-04 23:34:37 UTC
Comment 7 robonaut 2010-10-05 17:04:32 UTC
Indispensable for proper alphabetization.
For instance, *y-hydroxybutyric acid* under L instead 
of y or *"Nouvelle Vague" movement* and
*"Wrack Fishers"* under N and W instead of " or *21st century*
under T instead of 2.
Comment 8 R Green 2017-06-26 09:31:58 UTC
Created attachment 86151 [details]
Non-alphabetical index entries (example)

The 1st level keywords (e.g. "Southey, Robert") are in alphabetical order. However, the second level keywords are in non-alphabetical order.
Comment 9 R Green 2017-06-26 09:36:10 UTC
Like to second this request. Have attached a snapshot of section from a book index to illustrate non-alphabetical entries. There needs to be a way for the user to re-order entries as desired.