sort bugs