結果 : sort elements of an array by frequency in python