Sorting function/variables in an object by name
Posted
by
sissonb
on Stack Overflow
See other posts from Stack Overflow
or by sissonb
Published on 2011-11-11T23:43:47Z
Indexed on
2011/11/12
1:51 UTC
Read the original article
Hit count: 259
I was wondering if PHPStorm by Jetbrains has a tool to sort the methods in my JavaScript object by name. If not are there any other tools that can do this for me?
Ext.regController("dashboard", {
goToShoppingCart:function() {
Ext.dispatch({
controller:"shoppingCart",
action:"loadCart"
});
},
goToDashboard:function() {},
goToContact:function() {}
}
);
to
Ext.regController("dashboard", {
goToContact:function() {},
goToDashboard:function() {},
goToShoppingCart:function() {
Ext.dispatch({
controller:"shoppingCart",
action:"loadCart"
});
}
}
);
This is only for organization.
Thanks
© Stack Overflow or respective owner