-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort table view columns alphabetically #2825
Conversation
Secondary to predefined priorities
Test didn’t actually passed when run in browser, re-implemented sort comparison to work as desired and expected
@javisantana ok? |
@@ -178,8 +178,8 @@ | |||
return name && name.replace(/"/g, ''); | |||
}, | |||
|
|||
sortSchema: function(priorities) { | |||
this.set('schema', cdb.admin.CartoDBTableMetadata.sortSchema(this.get('schema'), priorities)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove the param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Removed the optional priorities param since it was not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, I'm probably agree, but not sure why I did that, probably we were using that param at some point from somewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I figured, in general I think it's better to remove unused code when doing changes though than leaving it around "just in case" :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, agree
🇪🇸 |
Frontend tests were OK 👍 (details) |
Sort table view columns alphabetically
Fixes #2638
sortSchema
method to sort "default" items alphabetically i.e. items that should not be on a specific position according to the predefined priorities