function to sort a table of Integer, with differents algorithm