Skip to content

Commit

Permalink
In "Database Explorer", sort Schemas alphabetically apache#3112
Browse files Browse the repository at this point in the history
  • Loading branch information
nadment committed Jul 27, 2023
1 parent 64d9595 commit d95df12
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ public void getData(ILoggingObject parentLoggingObject, IProgressMonitor monitor
// Ignore it to avoid excessive spamming
}


// Sort the schemas by names
Collections.sort(schemaList, (s1, s2) -> {return s1.getSchemaName()==null ? -1:s1.getSchemaName().compareToIgnoreCase(s2.getSchemaName());});

// Save for later...
setSchemas(schemaList.toArray(new Schema[schemaList.size()]));
}
Expand Down

0 comments on commit d95df12

Please sign in to comment.