#include <iostream>
#include <algorithm>
int main()
{
int m[] = { 5, -2, 3, -3, 8, -1, 0 }; /// 0 положительное мнж
std::sort(std::begin(m), std::end(m),
[](const auto& a, const auto& b) { return a >= 0 && b < 0; });
for (const auto& e : m) std::cout << e << ", ";
}
[](const auto& a, const auto& b) {return a >= 0 && b < 0; } // вот эта строчка?