Fix bug in sorting ideas
Implement like in view