Can someone help me?

I got a lo hand of A,2.3.5 and 8. Apparently it lost to another lo hand of A,2,3,6 and 7. Is this right? How is lo hand ranked?