<human>:  python How do you sort list by occurrence with out removing elements from the list?
<bot>:, lst.index(x)))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.