Array sorting function without PHP array functions

Posted 2 years ago by keevitaja

Hi!

I was given a test task to write a custom array sorting without using any sorting functions from the http://php.net/manual/en/ref.array.php

So basically just using loops and simple comparison. And i cannot do it.

How do you sort an [2, 7, 1, 4, 7] array without any of the functions from the link above. It seems like a major hassle or maybe i am just dumb.

Please sign in or create an account to participate in this conversation.