Categories are Listing in random positions, It's needed to be Display According to their Ids, I am posting the code below for review
Site is in Wordpress and file is lib/all_categories.php
It should Be Listing like this:
Category Line A
-----Category 1
-----Category 2
-----Category 3