The condition to sort by order was missing, so the views were only sorted by name. Added the most important order condition and proper tests for this. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>