Don't Drink the Water
Given a two-dimensional array representation of a glass of mixed liquids, sort the array such that the liquids appear in the glass based on their density. (Lower density floats to the top) The width of the glass will not change from top to bottom.
```
======================
|   Density Chart    |
======================
| Honey   | H | 1.36 |
| Water   | W | 1.00 |
| Alcohol | A | 0.87 |
| Oil     | O | 0.80 |
----------------------
[                            [
 ['H', 'H', 'W', 'O'],        ['O','O','O','O']
 ['W', 'W', 'O', 'W'],  =>    ['W','W','W','W']
 ['H', 'H', 'O', 'O']         ['H','H','H','H']
 ]                           ]
 ```
 The glass representation may be larger or smaller. If a liquid doesn't fill a row, it floats to the top and to the left.
def separate_liquids(glass):
    liquids = [];
    comparing = { 'H' : 1.36, 'W' : 1.00, 'A' : 0.87, 'O' : 0.80 }
    for row in glass:
        liquids.extend(row)

    liquids.sort(key=lambda k: comparing[k], reverse=True)
    
    for i in range(len(glass)):
        for j in range(len(glass[0])):
            glass[i][j] = liquids.pop()

    return glass
def separate_liquids(glass):
    liquids = [];
    comparing = { 'H' : 1.36, 'W' : 1.00, 'A' : 0.87, 'O' : 0.80 }
    for row in glass:
        liquids.extend(row)

    liquids.sort(key=lambda k: comparing[k], reverse=True)
    
    for i in range(len(glass)):
        for j in range(len(glass[0])):
            glass[i][j] = liquids.pop()

    return glass