Sort not sorting on 3rd column

I’m having problems with sort a spreadsheet. Problem is it’s not consistently failing so hard to catch. Sort is being done on whole sheet, 3 columns.
Sort: Page# - LastName - FirstName.
results
01 SMITH Margareta
01 SMITH Andrea
01 SMITH Anton

Do those ones not sorted correctly have a space before their name? Try the TRIM function to remove leading and trailing spaces.
TrimBeforeSort125313.ods (15.4 KB)

TRIM was applied. Same result

Is sharing a sample file an option for you? :thinking:

1 Like

Not sure what editing it was but after several sorts, the next one finally put the names in proper order. Thanks. (The TRIM was quite useful though, keep forgetting about those extra spaces)

@macRBC ,

If you don’t know how to upload files, just ask.

2 Likes