Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does 0 come before 1 when ordering the menu?
#5
It was already sorting sub pages that way.

The sorting process used to be something like this:
  • Compare menuOrder: lowest number first, starting with 0.
  • If the menuOrders were the same, compare menu textx (use titles if it is missing).
  • If the menu texts were the same, compare slugs (these are never the same.)
The new version of my plugin however looks at the first step like this:
  • Compare menuOrder: lowest number first, if one is over 0 and the other one equals 0 the latter comes later.
And this same process runs first on the top level and then on every sub level.

I hope custom menu sorting is going to make everyone happy when I launch it Smile
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
Does 0 come before 1 when ordering the menu? - by Zegnåt - 2010-03-15, 05:44:48



Users browsing this thread: 1 Guest(s)