Sorting baseLayer bug fixed.
Another silly one bug fixed.