use name instead of _id for sortable branch order

fixes #517
Merge pull request #520 from keyvanfatehi/517_persist_branch_order

use name instead of _id for sortable branch order