added more order funcionality and modified sql file
Merge branch 'KyleBranch'