Improved sorting regex and some bug fixes
add/edit/delete books