bugs.core_1482_test. Make optimizer to consider ORDER BY optimization when making decision about join order