Select to view content in your preferred language

Improve Catalog alphabetical sorting

378
2
03-22-2023 11:01 PM
Status: Under Consideration
Labels (1)
Bud
by
Esteemed Contributor

ArcGIS Pro 3.1


In Catalog, mobile geodatabases aren't sorted the way I'd expect. I would have expected New Mobile Geodatabase.geodatabase to come before New Mobile Geodatabase (1).geodatabase.

Bud_0-1679551016628.png

But instead, New Mobile Geodatabase.geodatabase is last in the list.

Am I having a brainfart, or is that sorting not quite right? Should no-space trump a space?


Edit: Although, I suppose it is handy that 10 comes after 9. That's not always the case with regular file sorting.

Bud_0-1679577306499.png

 

Tags (2)
2 Comments
DanPatterson

it is working fine.

a
['New Mobile Geodatabase(10).geodatabase',
 'New Mobile Geodatabase(5).geodatabase',
 'New Mobile Geodatabase(1).geodatabase',
 'New Mobile Geodatabase.geodatabase']

sorted(a)
['New Mobile Geodatabase(1).geodatabase',
 'New Mobile Geodatabase(10).geodatabase',
 'New Mobile Geodatabase(5).geodatabase',
 'New Mobile Geodatabase.geodatabase']

b = ["(10).", "(5).", "(10).", "."]

sorted(b)
['(10).', '(10).', '(5).', '.']

c = [").", "."]

sorted(c)
[').', '.']

hmmm

d = ['New Mobile Geodatabase(10).geodatabase', 'New Mobile Geodatabase(5).geodatabase', 'New Mobile Geodatabase(1).geodatabase', 'New Mobile Geodatabase().geodatabase']

sorted(d)
['New Mobile Geodatabase().geodatabase',
 'New Mobile Geodatabase(1).geodatabase',
 'New Mobile Geodatabase(10).geodatabase',
 'New Mobile Geodatabase(5).geodatabase']
NaicongLi
Status changed to: Under Consideration