Problem:

We want to create a list in column B that consists of each unique value from List1 (column A).
The values are to be sorted in descending order according to their frequency of occurrence in List1 (i.e. the most frequent number in List1 will appear first, followed by the second most frequent number, and so on).

Solution:

Enter the MODE function as shown in the following formula (in cell B2):
=MODE(A2:A15)
Then, use the MODE, IF, and COUNTIF functions as shown in the following Array formula in cell B3 and copy it down the column until the #N/A error is returned:
{=MODE(IF(COUNTIF($B$2:B2,$A$2:$A$15)=0,$A$2:$A$15))}