Add string length sort
warning fixes included