CS-4539: Order of related articles not available in front-end templates.

Modifies the orderby logic and get rid of array_reverse() in return.