length sort needs work