sorted sunrise sunset, & time adjustment function