If you want to have a good sleep, you should better do a little exercise before dinner. For example, if you want to go to sleep at around 11p.m. at night, then you should better have dinner at around 6-7p.m. Do a little exercise before dinner, sweat, make your bones more flexible, this can help you to maintain your health and increase your appetite.
Make it a habit to do some exercise before dinner, so that it can be a changing point between your work and rest. A little bit of tiresome can bring you a sweet dream and good sleep.