This is a very old bug that has never been replicated properly. It is not due to a greasemonkey script. Here's how to replicate it.
Load an AI with plenty of Inputs. Delete a couple random inputs. Change the order of a few random inputs (try to do it around the one's you deleted) Insert a couple new inputs. Update AI.
When it reloads you'll see some our of order issues.
The problem is that the move up/move down uses the ids of the inputs to handle order. So, the combination of a good number of those actions causes quite a bit of confusion.