Use order for quality allow calculation. fix #2396