Non so se può essere d'aiuto ma ho trovato l'errore che mi da quando si viene a bloccare la funzione sort().

This application has requested the runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Please help me!