Compare id's using integers instead of strings

Solves issues with locale-based _id's like "124_en"