I can't sort objects....

here I'm trying some examples from here,

none of them work.... am trying to sort by id.... no matter what method I use, the objects are not sorted... what am I missing......

thank you.....