Data Manipulation in R: ‘X’ must be atomic

You can use the unlist() to convert the list to a vector as the sort() function takes vector form for sorting.

head(sort(unlist(new_var), decreasing=TRUE), 3)