I have some parameters in URL that represents IDs. On this page, I am printing out a list of articles - usually between 50 and 70.
In the URL are IDs - say - in this format: website.com/mark/articles/10/12/13/20 (IDs of articles: 10, 12, 13, 20).
I would save these IDs into an array and while printing out all Mark's articles on the page, I would need to sort the articles the way that articles with IDs 10, 12, 13 and 20 would be on top of the list.
How to achieve something like this?