fix repo url
fix sorting
calculate id
temporary fix basis server __resource__.js injection bug