Learnacy Lab
Partition the row around a pivot so smaller bars go left and larger go right; the pivot lands in its final place and each side is sorted the same way.