Order elements with some groups
Draft a solution for Z axis