Scan successive elements for out of order item, then insert the item in the proper place. Sort small array fast, big array very slowly.
#include <stdlib.h>
#include <stdio.h>
#define uint32 unsigned int
#include <stdlib.h>
#include <stdio.h>
#define uint32 unsigned int