Bug 104485 - Alphabetizing text selection function in Writer
Summary: Alphabetizing text selection function in Writer
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-08 06:34 UTC by Dr. Pam Halton
Modified: 2023-12-08 03:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Pam Halton 2016-12-08 06:34:42 UTC
Description:
I would like an alphabetizing function added to Writer which would let you alphabetize a bunch of lines of text that had enter hit at the end of each line.

It would basically be like alphabetizing one column of text except in Writer instead of in Calc.

Actual Results:  
You can't alphabetize. 

Expected Results:
I would like to be able to alphabetize a series of lines of text in Writer as if I was in Calc. 


Reproducible: Always

User Profile Reset: No

Additional Info:
Why? Because we can be even better than Microsoft in the open software world.


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 tommy27 2016-12-08 08:06:53 UTC
I use a macro to do this. and I've assigned a custom toolbar button to it.

Sub AlphabeticOrder

oDoc = ThisComponent 
oTxtRange = oDoc.CurrentSelection(0) 
oTxtCursor = oDoc.Text.createTextCursorByRange(oTxtRange) 
mDesc = oTxtCursor.createSortDescriptor 
oTxtCursor.sort(mDesc) 
End Sub
Comment 2 tommy27 2016-12-08 08:10:55 UTC
as far as I know LibO misses a built-in text selection alphabetizing function.
status NEW.

regarding how to assign a macro to a toolbar button read a tutorial here:
https://ask.libreoffice.org/en/question/24690/macro-to-toolbar/
Comment 3 xordevoreaux 2020-08-23 20:26:53 UTC
How is this issue not addressed by (or different from):

1. typing (with returns between each, making them separate paragraphs)

Zebra
Giraffe
Aardvark
Badger



2. Highlighting the four lines of text

3. Selecting Tools, Sort... from the menu bar at the top

4. Hitting OK

producing:

Aardvark
Badger
Giraffe
Zebra

Works for me in:

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 8700bace8c0714d853f5df6918ab9c8bb3d81f77
CPU threads: 8; OS: Windows 10.0 Build 20197; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 4 BogdanB 2023-05-10 14:45:22 UTC
2. Highlighting the four lines of text
3. Selecting Tools, Sort... from the menu bar at the top

---> Is this solution working for you?
Comment 5 QA Administrators 2023-11-07 03:14:30 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-12-08 03:15:11 UTC
Dear Dr. Pam Halton,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp