PDA

View Full Version : Tiny suggestion; consistency in (store.sort) function arg



robincasey
18 Dec 2008, 12:59 AM
Hello, really itsy bitsy minor request, but I noticed that I need to give strings into the sort function of a store, and not an object. Ideally, I would like to pass on an object to every function, but now you have to do this:
store.sort(store.sortInfo.field, store.sortInfo.direction);

So in my opinion, it should work like this store.sort(store.sortInfo), or preferrable; it already uses the default config as default, so you only have to pass stuff through if you want to change the ordering.