Fix Flex-box order in pagination