Fix parsing empty strings.
Add sorting units by name on details view.