Sort not working

sir the compiler is showing sort was not declared in this scope