View Single Post
Old 09-03-2012, 07:49 AM   #269
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by knc1 View Post
Quick question:
Isn't that field named: "priority" actually implementing "priority groups"?

I.E: More that one item could be set as: "priority":5 and will all of those be grouped together for display (between "priority":4 and "priority":6 items).

Translation: The end-user does not have to be concerned about duplicating an existing priority number?
Yes, and no.

It's a very simple system: every extension can declare their own priority. The sorting is done once all extensions are loaded. If everybody declares a different priority, then all is fine, and entries are sorted in ascending order of their (numerical) declared priority.

If two or more extensions declare the same priority, then they are sorted according to the internal rules of the sort algorithm that is internally employed. There are no guarantees about the sort order though, so don't rely on any.
ixtab is offline   Reply With Quote