Sort:  

Yes, it was really similar, but it was not specific enough. Anyways I decided to announce @ciarmolimarco as the winner, because in the very first reply he posted yesterday he also mentioned the good solution. (Among several others that made it a little bit messy, so I asked for clarification...)