fix ordering on int fields