Fixed some typos in variable names for readability.
RG-192 WOrked on db error on sorting by name
Merge pull request #141 from mayurjadhav/RG-192

Rg 192