A new study in Sweden has found that the most popular pupils at school got the least amount of sleep.