I used this command to organize my treenumbers:
lpad("baumnummer", 6, '0')
So tree number 1 will be shown as "00001". I did this because in my layout lists every tree will be put into the right order.
Now I found another solution but I want to remove all the zeros beforehand from my Attribute table. How can I achieve that?