docs($rootScope): use unshift to add items to the array at the beginning

Closes #7364