Sort:  

especially when you try to replace a shit load of lines at once... :P writing a script for that would have been faster.