I have hit a speed bump in debugging a system I didn't write. Every time an INSERT query is committed, after using sorting the table, the last row is always deleted (i.e. inserting C on a table of A B D E F, results to A B C D E). If the INSERT is done on the last row (i.e. inserting G on a table of A B C D E F, results to A B C D E G), it replaces the last row.
Any idea where I should try looking into? Debugging on Eclipse.