I have a view with the content selection of "product categories", and I have written some custom code to show some data in it on the frontend. Now I want it to order in arbitary way. How can I acheive that?
You can see the content by following the link. It's the second section, just after the hero section. hidden link
Actually on the ordering settings for your view there should be an option for a "no order" sort order. If you go to your view and edit it. You should see this option See Screenshot.
If there are no specific attributes to order the terms by I would suggest that you create a custom field for the terms, a numeric field called Order.
Then in that field you would put 1,2,3,4 etc to help set the order. Then on views you can sort the terms by this field. Currently i'm not sure what order those taxonomy is in.
Even if we were to use some custom code we would still need an attribute to sort the terms by.