seperate total and other record
sorting record detail fragments
add total detail fragments