Fixed sorting
Additional logging for fragment handling