ensure ordering is consistent