fix a problem with sorting the stars