(Bug 49852) sortKey.toLowerCase()

.toLowerCase() only works on a string therefore make sure any object
in 'sortkey' is converted into a string.

Bug: 49852

Change-Id: I96e0c346f97940b2fc49f7cb12d58d1ebf1e928b