This is not a bug per se. Inventory reordering occurs sometimes, for internal reasons. In case of rafting it's related to order of drawing tiles so that that raft is always displayed being the bottom one.
If this, or other cases, seem like major inconvenience we can try to find a workaround. Thread is open for a discussion.