Implement sorting by intensity. Things don't work yet.