adding entries prepends and sorts properly