Nellive Longbottom's sorting