writ quick sort to warm brain