Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7.2, 1.8-beta-1
-
Component/s: groovy-jdk
-
Labels:None
-
Environment:All
-
Number of attachments :
Description
It would be handy to have a sort method on a Map or Property that would sort by the name/key since this is something that is commonly done. A possible implementation for a Property class might look like this:
Properties.metaClass.sort = {
new TreeMap(delegate)
}
Example usage would be:
System.properties.sort()
Issue Links
- relates to
-
GROOVY-3992
Add a reverse method to Map
-
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue relates to |
Paul King
made changes -
| Assignee | Paul King [ paulk_asert ] | |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.7.2 [ 16237 ] | |
| Fix Version/s | 1.8-beta-1 [ 16013 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |