implement Ord, TotalEq and TotalOrd for char

Closes #6063
auto merge of #6064 : thestinger/rust/char, r=catamorphism