I have a n array of n objects like so: 

```
[{'item1': 144},
 {'item2': 0},
 {'item3': 366},
 {'item4': 15},
 {'item6': 366},
 {'item7': 19},
 {'item8': 211},
 {'item9': 121}]

```

The item values are 0-n.

I need to represent these items with varying size depending on their values. 

To do this, my initial thoughts were to splice the array into four minor arrays: XL, L, M, S. 

I'm not sure how to go about sorting the array into these 4 sets.