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.
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.
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']
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.