change sortorder
added valid percentage calculation for Lipo batteries.