Timeout if sort is too long
As sort is done server-side, if it's too long we have a timeout (because we are not asynchronous).
Solutions:
- Limit number of lines taken in account for the sort (not sure it solves the problem, may be a problem for export fasta etc...)
- Make it asynchronous:
- By a websocket connection. If chosen, could also be used for the status page
- By a regular server call by the client (it's not the best choice... :-( )
- Make the sort on job launch and save it. Just load it on click on the sort button. Solves the problem, but job takes more time (juste few seconds in general...) and the server could do it while the user will never want the sorted version.