Fixed 'cannot reference' issue within usort function