optim : ordering based on revision (should have Number type) + added more ordering options
bugfix : syntax error