sortByDensity

fun sortByDensity(sortOrder: SortOrder, blobs: List<ColourBlob>): List<ColourBlob>

Sorts a list of blobs by density.