teaked bbox sorting