Improved sorting in Discovery Community

- sorting tbs by random if they have the same overlap
- sorting possible by timestamp if they have the same overlap, then by random
- limiting to max_tbs to maintain connections to