[SERVER-13192] "show dbs" shell helper is no longer sorted alphabetically Created: 13/Mar/14  Updated: 11/Jul/16  Resolved: 14/Mar/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.6.0-rc1
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Cailin Nelson Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-13226 "show dbs" result in mongo shell no l... Closed
Operating System: ALL
Participants:

 Description   

show dbs has always produced an alphabetically sorted listed. This makes it easier to find the information you are looking for. In 2.6.0rc1, the list is no longer sorted.



 Comments   
Comment by Githook User [ 14/Mar/14 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-13192 Fix sorting in show dbs shell helper
Branch: v2.6
https://github.com/mongodb/mongo/commit/d2e6240d6b0ef80f4b692cd69b50f0e68aefbade

Comment by Githook User [ 14/Mar/14 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-13192 Fix sorting in show dbs shell helper
Branch: master
https://github.com/mongodb/mongo/commit/2ab0b308b4d1c045aad6d43faf77a5584892f8da

Comment by Shaun Verch [ 14/Mar/14 ]

cailin.nelson@10gen.com Do you have a reproducible test case for this? It seems to be sorted for me. Were you running this against a mongos or a mongod? I see a "sort" step in the "show dbs" shell helper: https://github.com/mongodb/mongo/blob/r2.6.0-rc1/src/mongo/shell/utils.js#L889

Generated at Thu Feb 08 03:30:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.